package xin.fsqr520.project.util;

import org.springframework.util.DigestUtils;

public class EncodingUtil {

    /**
     * 对密码进行加密
     *
     * @param sourcePassword
     * @return
     */
    public static String encode(String sourcePassword) {
        return DigestUtils.md5DigestAsHex(sourcePassword.getBytes());
    }
}
